package com.zl.csMall.mine.notice.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.zl.csMall.mine.user.po.User;
import com.zl.csMall.product.commodity.po.Commodity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @description: 通知
 * @author: ChenNing
 * @date 2025-10-24 10:37
 */
@Data
@ApiModel(description = "通知 实体")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Notice implements Serializable {

    private static final long serialVersionUID = 1L;

    private long id;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "用户 实体")
    @TableField(exist = false)
    private User user;

    @ApiModelProperty(value = "商品ID")
    private Long commodityId;

    @ApiModelProperty(value = "商品 实体")
    @TableField(exist = false)
    private Commodity commodity;

    @ApiModelProperty(value = "收货地址ID")
    private Long recAddressId;

    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    @ApiModelProperty(value = "消息标题")
    private String title;

    @ApiModelProperty(value = "消息内容")
    private String content;

    private Date createDate;

}
